﻿using MongoDB.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Quartz.Service
{
    public interface IApiService
    {
        /// <summary>
        /// 执行任务，返回任务API的Response内容
        /// </summary>
        /// <param name="Task"></param>
        /// <param name="IsRetry">是否是重试的</param>
        /// <returns></returns>
        Task<string> ExecuteTask(Mongo_TaskManageModel Task, bool IsRetry = false);

        /// <summary>
        /// 删除验证头，如果修改了验证配置，则需要删除原来的验证头
        /// </summary>
        /// <param name="guid"></param>
        /// <returns></returns>
        void RemoveAuthToken(string guid);
    }
}
